package be.ipl.diavolo.domaine;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.validation.constraints.Min;

@Embeddable
@SuppressWarnings("serial")
public class Action implements Serializable {
	
	public enum Diablotin {
		BLANC, ROUGE, NOIR, GRIS, RIEN;
	}

	@Enumerated(EnumType.STRING)
	private Diablotin diablotin;

	@Column
	@Min(0)
	private int nbrDeGemmes;

	protected Action() {
		super();
	}
	
	public Action(int nbrDeGemmes, Diablotin diablotin) {
		this.nbrDeGemmes = nbrDeGemmes;
		this.diablotin = diablotin;
	}

	public Diablotin getDiablotin() {
		return diablotin;
	}

	public int getNbrDeGemmes() {
		return nbrDeGemmes;
	}
}
